package com.sakura.flowers.util;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author : Sakura
 * @Date : 2023/11/5 11:38
 * @Description : TODO
 */
@Data
@NoArgsConstructor
public class MyPage<T> {

    private Long total;
    private List<T> records;
    /**
     * 分页对象的构造函数
     * @param queryPage:实体列表
     * @param total:总条数
     * @author Sakura
     * @date 2023/11/5 17:25
     */
    public MyPage(List<T> queryPage, long total) {
        this.records = queryPage;
        this.total = total;
    }
}
